<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 声明JSON对象
        // {key:value} {键：值}
        // 在js中key的引号可以省略
        var zheng = {
            "name":"zheng",
            "sex":"女"
        }
        var obj = {
            name:"zcy",
            sex:"女"
        }
        // 2.读取Json对象的值
        console.log(zheng.name)

        // 3.给对象添加属性
        zheng.skill = "javascript"
        console.log(zheng)
    </script>
</body>
</html>